package com.le.sarrs.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Mappings {
	
	
	public final static String WEBSITE_LETV = "letv"; //1		乐视网
	public final static String WEBSITE_IQIYI = "iqiyi"; //2		爱奇艺
	public final static String WEBSITE_TUDOU = "tudou"; //3		土豆
	public final static String WEBSITE_XUNLEI = "xunlei"; //4		迅雷
	public final static String WEBSITE_KU6 = "ku6"; //5		酷六
	public final static String WEBSITE_M1905 = "m1905"; //6		电影网
	public final static String WEBSITE_PPTV = "pptv"; //7		PPTV
	public final static String WEBSITE_YOUKU = "youku"; //7		优酷
	public final static String WEBSITE_PPS = "pps"; //8		PPS
	public final static String WEBSITE_SOHU = "sohu"; //9		搜狐视频
	public final static String WEBSITE_QQ = "qq"; //10		腾讯视频
	public final static String WEBSITE_SINA = "sina"; //11		新浪视频
	public final static String WEBSITE_56 = "56"; //12		56
	public final static String WEBSITE_FUNSHION = "funshion"; //13		风行
	public final static String WEBSITE_IFENG = "ifeng"; //14		凤凰
	public final static String WEBSITE_KUMI = "kumi"; //15		酷米
	public final static String WEBSITE_BEVA = "beva"; //16		贝瓦
	public final static String WEBSITE_61 = "61"; //17		淘米
	public final static String WEBSITE_YINYUETAI = "yinyuetai"; //18		音悦台
	public final static String WEBSITE_CNTV = "cntv"; //19		CNTV
	public final static String WEBSITE_WASU = "wasu"; //20		华数
	public final static String WEBSITE_NETS = "nets"; //20		互联网
	public final static String WEBSITE_IMGO = "imgo"; //20		芒果台
	public final static String WEBSITE_ZJWS = "zjstv";

	public final static int LESO_TV = 1; //电视剧
	public final static int LESO_MOVIE = 2; //电影
	public final static int LESO_DONGMAN = 3; //动漫
	public final static int LESO_ZONGYI = 4; //综艺
	public final static int LESO_YINYUE = 5; //音乐
	public final static int LESO_YULE = 1003; //娱乐
	public final static int LESO_TIYU = 1004; //体育
	public final static int LESO_FENGSHANG = 20; //风尚
	public final static int LESO_CAIJING = 22; //财经
	public final static int LESO_QICHE = 14; //汽车
	public final static int LESO_LVYOU = 23; //旅游
	public final static int LESO_JILUPIAN = 16; //纪录片
	public final static int TIME_OUT = 3000; //纪录片
	public static Map<String, Integer> MMS_CAT_LETV_LESO_MAP = new HashMap<String, Integer>();
	public static Map<String, String> MMS_CAT_LESO_LETV_MAP = new HashMap<String, String>();
	public static Map<String, String> SITE_LOGO_MAP = new HashMap<String, String>();
	public static Map<String, String> SITE_NAME_MAP = new HashMap<String, String>();
	public static Map<String, String> VT_MAP = new HashMap<String, String>();

	public static String LESO_SRC_LETV = "letv";
	public static String CLOUD_URL = "http://cloud.letv.com/openapi/openapi/playurl?code={0}&type={1}&unique_id={2}";//4ZtTgD144O
	public static List<String> JS_SITE = new ArrayList<String>();
	public static Map<String, String> CHANNEL_MAP = new HashMap<String, String>();
	public static Map<String, String> CHANNEL_MAP_SORT = new HashMap<String, String>();
	
	public static String filepathVersion = "1.6";
	static {
		MMS_CAT_LETV_LESO_MAP.put("1", Integer.valueOf(2));
		MMS_CAT_LETV_LESO_MAP.put("2", Integer.valueOf(1));
		MMS_CAT_LETV_LESO_MAP.put("5", Integer.valueOf(3));
		MMS_CAT_LETV_LESO_MAP.put("11", Integer.valueOf(4));
		MMS_CAT_LETV_LESO_MAP.put("16", Integer.valueOf(16));

		MMS_CAT_LESO_LETV_MAP.put("1", "2");
		MMS_CAT_LESO_LETV_MAP.put("2", "1");
		MMS_CAT_LESO_LETV_MAP.put("3", "5");
		MMS_CAT_LESO_LETV_MAP.put("4", "11");
		MMS_CAT_LESO_LETV_MAP.put("16", "16");

		SITE_LOGO_MAP
				.put(WEBSITE_LETV,
						"http://i1.letvimg.com/client/201404/23/y/y/play_logo_letv.png");
		SITE_LOGO_MAP
				.put(WEBSITE_IQIYI,
						"http://i0.letvimg.com/client/201404/23/y/y/play_logo_iqiyi.png");
		SITE_LOGO_MAP
				.put(WEBSITE_YOUKU,
						"http://i0.letvimg.com/client/201404/23/y/y/play_logo_youku.png");
		SITE_LOGO_MAP
				.put(WEBSITE_TUDOU,
						"http://i1.letvimg.com/client/201404/23/y/y/play_logo_tudou.png");
		SITE_LOGO_MAP
				.put(WEBSITE_XUNLEI,
						"http://i0.letvimg.com/client/201404/23/y/y/play_logo_xunlei.png");
		SITE_LOGO_MAP.put(WEBSITE_KU6,
				"http://i3.letvimg.com/client/201404/23/y/y/play_logo_ku6.png");
		SITE_LOGO_MAP
				.put(WEBSITE_M1905,
						"http://i3.letvimg.com/client/201404/23/y/y/play_logo_m1905.png");
		SITE_LOGO_MAP
				.put(WEBSITE_PPTV,
						"http://i0.letvimg.com/client/201404/23/y/y/play_logo_pptv.png");
		SITE_LOGO_MAP.put(WEBSITE_PPS,
				"http://i2.letvimg.com/client/201404/23/y/y/play_logo_pps.png");
		SITE_LOGO_MAP
				.put(WEBSITE_SOHU,
						"http://i1.letvimg.com/client/201404/23/y/y/play_logo_sohu.png");
		SITE_LOGO_MAP.put(WEBSITE_QQ,
				"http://i3.letvimg.com/client/201404/23/y/y/play_logo_qq.png");
		SITE_LOGO_MAP.put(WEBSITE_56,
				"http://i3.letvimg.com/client/201404/23/y/y/play_logo_56.png");
		SITE_LOGO_MAP
				.put(WEBSITE_FUNSHION,
						"http://i0.letvimg.com/client/201404/23/y/y/play_logo_funshion.png");
		SITE_LOGO_MAP
				.put(WEBSITE_IFENG,
						"http://i2.letvimg.com/client/201404/23/y/y/play_logo_ifeng.png");
		SITE_LOGO_MAP
				.put(WEBSITE_BEVA,
						"http://i2.letvimg.com/client/201404/23/y/y/play_logo_beva.png");
		SITE_LOGO_MAP.put(WEBSITE_61,
				"http://i0.letvimg.com/client/201404/23/y/y/play_logo_61.png");
		SITE_LOGO_MAP
				.put(WEBSITE_YINYUETAI,
						"http://i2.letvimg.com/client/201404/23/y/y/play_logo_yinyuetai.png");
		SITE_LOGO_MAP
				.put(WEBSITE_CNTV,
						"http://i1.letvimg.com/client/201404/23/y/y/play_logo_cntv.png");
		SITE_LOGO_MAP
				.put(WEBSITE_WASU,
						"http://i1.letvimg.com/client/201404/23/y/y/play_logo_wasu.png");
		SITE_LOGO_MAP.put(WEBSITE_IMGO,
				"http://i1.letvimg.com/client/201404/25/g/g/TV.png");
		SITE_LOGO_MAP.put(WEBSITE_KUMI,
				"http://i2.letvimg.com/client/201404/25/g/g/kumi.png");
		SITE_LOGO_MAP
				.put(WEBSITE_SINA,
						"http://i3.letvimg.com/search/201405/26/tmp_1025923257972152873.png");
		SITE_LOGO_MAP.put(WEBSITE_NETS,
				"http://i2.letvimg.com/p/201407/24/wangpan.png");
		SITE_LOGO_MAP.put(WEBSITE_ZJWS,
				"http://i2.letvimg.com/other/201407/23/zhongguolan.png");

		SITE_NAME_MAP.put(WEBSITE_LETV, "乐视网");
		SITE_NAME_MAP.put(WEBSITE_IQIYI, "爱奇艺");
		SITE_NAME_MAP.put(WEBSITE_YOUKU, "优酷");
		SITE_NAME_MAP.put(WEBSITE_TUDOU, "土豆");
		SITE_NAME_MAP.put(WEBSITE_XUNLEI, "迅雷看看");
		SITE_NAME_MAP.put(WEBSITE_KU6, "酷六");
		SITE_NAME_MAP.put(WEBSITE_M1905, "电影网");
		SITE_NAME_MAP.put(WEBSITE_PPTV, "PPTV");
		SITE_NAME_MAP.put(WEBSITE_PPS, "PPS");
		SITE_NAME_MAP.put(WEBSITE_SOHU, "搜狐视频");
		SITE_NAME_MAP.put(WEBSITE_QQ, "腾讯视频");
		SITE_NAME_MAP.put(WEBSITE_56, "我乐");
		SITE_NAME_MAP.put(WEBSITE_FUNSHION, "风行");
		SITE_NAME_MAP.put(WEBSITE_IFENG, "凤凰网");
		SITE_NAME_MAP.put(WEBSITE_BEVA, "贝瓦");
		SITE_NAME_MAP.put(WEBSITE_61, "六一儿童");
		SITE_NAME_MAP.put(WEBSITE_YINYUETAI, "音悦台");
		SITE_NAME_MAP.put(WEBSITE_CNTV, "CNTV");
		SITE_NAME_MAP.put(WEBSITE_WASU, "华数");
		SITE_NAME_MAP.put(WEBSITE_IMGO, "芒果TV");
		SITE_NAME_MAP.put(WEBSITE_KUMI, "酷米");
		SITE_NAME_MAP.put(WEBSITE_SINA, "新浪视频");
		SITE_NAME_MAP.put(WEBSITE_NETS, "网络");
		SITE_NAME_MAP.put(WEBSITE_ZJWS, "蓝天下");

		VT_MAP.put("1", "tv");
		VT_MAP.put("2", "film");
		VT_MAP.put("3", "cartoon");
		VT_MAP.put("4", "variety");
		VT_MAP.put("16", "dfilm");

		//JS_SITE.add("sohu.com");
		//JS_SITE.add("qq.com");
		JS_SITE.add("funshion.com");
		//JS_SITE.add("imgo.com");
		//JS_SITE.add("kankan.com");
		//JS_SITE.add("pptv.com");
		//JS_SITE.add("cntv.com");
		
		CHANNEL_MAP.put("CCTV", "CCTV");
		CHANNEL_MAP.put("WS", "WS");
		CHANNEL_MAP.put("GQ", "GQ"); 
		
		CHANNEL_MAP_SORT.put("CCTV", "1"); 
		CHANNEL_MAP_SORT.put("WS", "0"); 
		CHANNEL_MAP_SORT.put("GQ", "2"); 
	}
	
	

	public static Map<String, String> CR_MAP = new HashMap<String, String>();	//码率映射
	//public static Map<String, String> DEFINITION_MAP = new HashMap<String, String>();	//清晰度映射

	public static Map<String, String> TOUTIAO_CATEGORY_MAP = new HashMap<String, String>();	//码率映射
	
	static {
		CR_MAP.put("252067", "ad_m_baseline");
		CR_MAP.put("252001", "flv_350");
		CR_MAP.put("252002", "3gp_320X240");
		CR_MAP.put("252003", "flv_enp");
		CR_MAP.put("252004", "chinafilm_350");
		CR_MAP.put("252008", "flv_vip");
		CR_MAP.put("252009", "mp4");
		CR_MAP.put("252010", "flv_live");
		CR_MAP.put("252011", "union_low");
		CR_MAP.put("252012", "union_high");
		CR_MAP.put("252013", "mp4_800");
		CR_MAP.put("252016", "flv_1000");
		CR_MAP.put("252017", "flv_1300");
		CR_MAP.put("252018", "flv_720p");
		CR_MAP.put("252019", "mp4_1080p");
		CR_MAP.put("252020", "flv_1080p6m");
		CR_MAP.put("252021", "mp4_350");
		CR_MAP.put("252022", "mp4_1300");
		CR_MAP.put("252023", "mp4_800_db");
		CR_MAP.put("252024", "mp4_1300_db");
		CR_MAP.put("252025", "mp4_720p_db");
		CR_MAP.put("252026", "mp4_1080p6m_db");
		CR_MAP.put("252027", "flv_yuanhua");
		CR_MAP.put("252028", "mp4_yuanhua");
		CR_MAP.put("252029", "flv_720p_3d");
		CR_MAP.put("252030", "mp4_720p_3d");
		CR_MAP.put("252031", "flv_1080p6m_3d");
		CR_MAP.put("252032", "mp4_1080p6m_3d");
		CR_MAP.put("252033", "flv_1080p_3d");
		CR_MAP.put("252034", "mp4_1080p_3d");
		CR_MAP.put("252035", "flv_1080p3m");
		CR_MAP.put("252036", "ad_tv_1080p");
		CR_MAP.put("252037", "ad_m_gaoqing");
		CR_MAP.put("252038", "ad_pc_liuchang");
		CR_MAP.put("252039", "ad_pc_gaoqing");
		CR_MAP.put("252044", "flv_4k");
		CR_MAP.put("252045", "flv_4k_265");
		CR_MAP.put("252046", "flv_3m_3d");
		CR_MAP.put("252047", "h265_flv_800");
		CR_MAP.put("252048", "h265_flv_1300");
		CR_MAP.put("252049", "h265_flv_720p");
		CR_MAP.put("252050", "h265_flv_1080p");
		CR_MAP.put("252051", "mp4_720p");
		CR_MAP.put("252052", "mp4_1080p3m");
		CR_MAP.put("252053", "mp4_1080p6m");
		CR_MAP.put("252054", "mp4_4k");
		CR_MAP.put("252055", "mp4_4k_15m");
		CR_MAP.put("252056", "ad_tv_4k");
		CR_MAP.put("252057", "flv_180");
		CR_MAP.put("252058", "mp4_180");
		CR_MAP.put("252059", "mp4_4k_db");
		CR_MAP.put("252060", "ad_pc_liuchang_mp4");
		CR_MAP.put("252061", "ad_pc_gaoqing_mp4");
		CR_MAP.put("252062", "ad_tv_1080p_mp4");
		CR_MAP.put("252063", "ad_tv_4k_mp4");
		CR_MAP.put("252064", "mp4_4k_30m");
		CR_MAP.put("252065", "h265_flv_4k_10m");
		CR_MAP.put("252066", "h265_flv_4k_20m");
		CR_MAP.put("252068", "baseline_marlin");
		CR_MAP.put("252069", "baseline_access");
		CR_MAP.put("252070", "180_marlin");
		CR_MAP.put("252071", "180_access");
		CR_MAP.put("252072", "350_marlin");
		CR_MAP.put("252073", "350_access");
		CR_MAP.put("252074", "800_marlin");
		CR_MAP.put("252075", "800_access");
		CR_MAP.put("252076", "1300_marlin");
		CR_MAP.put("252077", "1300_access");
		CR_MAP.put("252078", "720p_marlin");
		CR_MAP.put("252079", "720p_access");
		CR_MAP.put("252080", "1080p3m_marlin");
		CR_MAP.put("252081", "1080p3m_access");
		CR_MAP.put("252082", "1080p6m_marlin");
		CR_MAP.put("252083", "1080p6m_access");
		CR_MAP.put("252084", "1080p15m_marlin");
		CR_MAP.put("252085", "1080p15m_access");
		CR_MAP.put("252086", "4k_marlin");
		CR_MAP.put("252087", "4k_access");
		CR_MAP.put("252088", "4k15m_marlin");
		CR_MAP.put("252089", "4k15m_access");
		CR_MAP.put("252090", "4k30m_marlin");
		CR_MAP.put("252091", "4k30m_access");
		CR_MAP.put("252092", "800_db_marlin");
		CR_MAP.put("252093", "800_db_access");
		CR_MAP.put("252094", "1300_db_marlin");
		CR_MAP.put("252095", "1300_db_access");
		CR_MAP.put("252096", "720p_db_marlin");
		CR_MAP.put("252097", "720p_db_access");
		CR_MAP.put("252098", "1080p3m_db_marlin");
		CR_MAP.put("252099", "1080p3m_db_access");
		CR_MAP.put("252100", "1080p6m_db_marlin");
		CR_MAP.put("252101", "1080p6m_db_access");
		CR_MAP.put("252102", "1080p15m_db_marlin");
		CR_MAP.put("252103", "1080p15m_db_access");
		CR_MAP.put("252104", "4k_db_marlin");
		CR_MAP.put("252105", "4k_db_access");
		CR_MAP.put("252106", "4k15m_db_marlin");
		CR_MAP.put("252107", "4k15m_db_access");
		CR_MAP.put("252108", "4k30m_db_marlin");
		CR_MAP.put("252109", "4k30m_db_access");
		CR_MAP.put("252110", "720p_3d_marlin");
		CR_MAP.put("252111", "720p_3d_access");
		CR_MAP.put("252112", "1080p3m_3d_marlin");
		CR_MAP.put("252113", "1080p3m_3d_access");
		CR_MAP.put("252114", "1080p6m_3d_marlin");
		CR_MAP.put("252115", "1080p6m_3d_access");
		CR_MAP.put("252116", "1080p15m_3d_marlin");
		CR_MAP.put("252117", "1080p15m_3d_access");
		CR_MAP.put("252118", "4k_3d_marlin");
		CR_MAP.put("252119", "4k_3d_access");
		CR_MAP.put("252120", "4k15m_3d_marlin");
		CR_MAP.put("252121", "4k15m_3d_access");
		CR_MAP.put("252122", "4k30m_3d_marlin");
		CR_MAP.put("252123", "4k30m_3d_access");
		CR_MAP.put("252124", "mp4_180_logo");
		CR_MAP.put("252125", "mp4_350_logo");
		CR_MAP.put("252126", "mp4_800_logo");
		CR_MAP.put("252127", "mp4_180_h265");
		CR_MAP.put("252128", "mp4_350_h265");
		CR_MAP.put("252129", "mp4_800_h265");
		CR_MAP.put("252130", "mp4_1300_h265");
		CR_MAP.put("252131", "mp4_720p_h265");
		CR_MAP.put("252132", "mp4_1080p3m_h265");
		CR_MAP.put("252133", "mp4_1080p6m_h265");
		CR_MAP.put("252134", "mp4_2k_h265");
		CR_MAP.put("252135", "mp4_4k_m_h265");
		CR_MAP.put("252136", "mp4_4k_h_h265");
		CR_MAP.put("252137", "mp4_2k");
		CR_MAP.put("252138", "mp4_800_dts");
		CR_MAP.put("252139", "mp4_1300_dts");
		CR_MAP.put("252140", "mp4_720p_dts");
		CR_MAP.put("252141", "mp4_1080p3m_dts");
		CR_MAP.put("252142", "mp4_1080p6m_dts");
		CR_MAP.put("252143", "mp4_2k_dts");
		CR_MAP.put("252144", "mp4_4k_dts");
		CR_MAP.put("252145", "mp4_4k_m_dts");
		CR_MAP.put("252146", "mp4_4k_h_dts");
		CR_MAP.put("252147", "mp4_800_h265_dts");
		CR_MAP.put("252148", "mp4_1300_h265_dts");
		CR_MAP.put("252149", "mp4_720p_h265_dts");
		CR_MAP.put("252150", "mp4_1080p3m_h265_dts");
		CR_MAP.put("252151", "mp4_1080p6m_h265_dts");
		CR_MAP.put("252152", "mp4_2k_h265_dts");
		CR_MAP.put("252153", "mp4_4k_m_h265_dts");
		CR_MAP.put("252154", "mp4_4k_h_h265_dts");
		CR_MAP.put("252040", "ad_tv_1080p");
		CR_MAP.put("252041", "ad_m_gaoqing");
		CR_MAP.put("252042", "ad_pc_liuchang");
		CR_MAP.put("252043", "ad_pc_gaoqing");

		/*DEFINITION_MAP.put("mp4_4k_m_h265", "4k");
		DEFINITION_MAP.put("mp4_720p _3d", "3D");
		DEFINITION_MAP.put("mp4_1080p_3d", "3D");
		DEFINITION_MAP.put("mp4_800_db", "影院声");
		DEFINITION_MAP.put("mp4_1300_db ", "影院声");
		DEFINITION_MAP.put("mp4_720p_db", "影院声");
		DEFINITION_MAP.put("mp4_800_dts", "影院声");
		DEFINITION_MAP.put("mp4_1300_dts", "影院声");
		DEFINITION_MAP.put("mp4_720_dts", "影院声");
		DEFINITION_MAP.put("mp4_1080p3m_dts", "影院声");
		DEFINITION_MAP.put("mp4_2k_h265", "2k");
		DEFINITION_MAP.put("mp4_1080p3m", "1080p");*/
		
		
		TOUTIAO_CATEGORY_MAP.put("t1", "news_hot");
		TOUTIAO_CATEGORY_MAP.put("t2", "news_entertainment");
		TOUTIAO_CATEGORY_MAP.put("t3", "news_society");
		TOUTIAO_CATEGORY_MAP.put("t4", "news_tech");
		TOUTIAO_CATEGORY_MAP.put("t5", "news_car");
		TOUTIAO_CATEGORY_MAP.put("t6", "news_sports");
		TOUTIAO_CATEGORY_MAP.put("t7", "news_finance");
		TOUTIAO_CATEGORY_MAP.put("t8", "news_military");

		TOUTIAO_CATEGORY_MAP.put("t9", "funny");
		TOUTIAO_CATEGORY_MAP.put("t10", "news_fashion");
		TOUTIAO_CATEGORY_MAP.put("t11", "news_game");
		TOUTIAO_CATEGORY_MAP.put("t12", "news_food");
		TOUTIAO_CATEGORY_MAP.put("t13", "news_pet");
	}
}